#ifndef CLIENT_H
#define CLIENT_H

#include <QWidget>
#include"QLineEdit"
#include"QPlainTextEdit"
#include"QTextBrowser"
#include"mytcpclient.h"

namespace Ui {
class client;
}

class client : public QWidget
{
    Q_OBJECT
public:
    QObject*instance;
    QLineEdit* ipTxt;
    QLineEdit* portTxt;
    QTextBrowser*rcvMsgBrower;
    QPlainTextEdit*sendMsgEdit;
    MyTcpClient*myTcpClient=nullptr;
    std::string getMyIp();
public:
    explicit client(QWidget *parent = nullptr);
    ~client();

private slots:
    void on_pushButton_clicked();

    void on_btnSend_clicked();

    void on_btnClear_clicked();

private:
    Ui::client *ui;
};

#endif // CLIENT_H
